﻿using Shop.Model.AttrTemplate;
using Shop.Model.DB;
using Shop.RemoteModel.AttrTemplate.Model;

namespace Shop.Collect
{
    public interface IAttrTemplateCollect
    {
        Dictionary<long, int> SetSort (DBGoodsAttrTemplate template, int sort);
        long Add (AttrTemplateAdd add);

        void Delete (DBGoodsAttrTemplate source);

        void Enable (DBGoodsAttrTemplate source);

        DBGoodsAttrTemplate Get (long id);

        Result Get<Result> (long id) where Result : class;

        AttrTemplateDto[] GetsByCategoryId (long categoryId, bool? isEnable);

        void Stop (DBGoodsAttrTemplate source);

        bool Update (DBGoodsAttrTemplate source, AttrTemplateSet set);
    }
}